NXP Semiconductors /LPC800 /CMP /CTRL

Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text

Interpret as CTRL

31 2827 2423 2019 1615 1211 87 43 0 0 0 0 0 0 0 0 00 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 (RESERVED)RESERVED 0 (FALLING_EDGES)EDGESEL 0 (RESERVED)RESERVED 0 (DIRECT)COMPSA 0 (RESERVED)RESERVED 0 (VOLTAGE_LADDER_OUTPU)COMP_VP_SEL 0 (VOLTAGE_LADDER_OUTPU)COMP_VM_SEL 0 (RESERVED)RESERVED0 (EDGECLR)EDGECLR 0 (COMPSTAT)COMPSTAT 0 (RESERVED)RESERVED 0 (COMPEDGE)COMPEDGE 0 (RESERVED)RESERVED 0 (NONE_THE_OUTPUT_WIL)HYS0 (RESERVED)RESERVED

COMPSA=DIRECT, COMP_VP_SEL=VOLTAGE_LADDER_OUTPU, COMP_VM_SEL=VOLTAGE_LADDER_OUTPU, EDGESEL=FALLING_EDGES, HYS=NONE_THE_OUTPUT_WIL

Description

Comparator control register

Fields

RESERVED

Reserved. Write as 0.

EDGESEL

This field controls which edges on the comparator output set the COMPEDGE bit (bit 23 below): 00 = Falling edges 01 = Rising edges 1x = Both edges

0 (FALLING_EDGES): Falling edges

1 (RISING_EDGES): Rising edges

2 (BOTH_EDGES): Both edges

3 (BOTH_EDGES): Both edges

RESERVED

Reserved. Write as 0.

COMPSA

Comparator output control

0 (DIRECT): Comparator output is used directly.

1 (SYNCH): Comparator output is synchronized to the bus clock for output to other modules.

RESERVED

Reserved. Write as 0.

COMP_VP_SEL

Selects positive voltage input

0 (VOLTAGE_LADDER_OUTPU): Voltage ladder output

1 (ACMP_I1): ACMP_I1

2 (ACMP_I2): ACMP_I2

3 (RESERVED): Reserved

4 (RESERVED): Reserved

5 (RESERVED): Reserved

6 (INTERNAL_REFERENCE_V): Internal reference voltage

7 (RESERVED): Reserved

COMP_VM_SEL

Selects negative voltage input

0 (VOLTAGE_LADDER_OUTPU): voltage ladder output

1 (ACMP_I1): ACMP_I1

2 (ACMP_I2): ACMP_I2

3 (RESERVED): Reserved

4 (RESERVED): Reserved

5 (RESERVED): Reserved

6 (INTERNAL_REFERENCE_V): Internal reference voltage

7 (RESERVED): Reserved

RESERVED

Reserved. Write as 0.

EDGECLR

Interrupt clear bit. To clear the COMPEDGE bit and thus negate the interrupt request, toggle the EDGECLR bit by first writing a 1 and then a 0.

COMPSTAT

Comparator status. This bit reflects the state of the comparator output.

RESERVED

Reserved. Write as 0.

COMPEDGE

Comparator edge-detect status.

RESERVED

Reserved. Write as 0.

HYS

Controls the hysteresis of the comparator. When the comparator is outputting a certain state, this is the difference between the selected signals, in the opposite direction from the state being output, that will switch the output.

0 (NONE_THE_OUTPUT_WIL): None (the output will switch as the voltages cross)

1 (5_MV): 5 mV

2 (10_MV): 10 mV

3 (20_MV): 20 mV

RESERVED

Reserved

Links

()